STEP 6: The grades printed out, but they're out of order. Let's fix that by sorting the list!

  • From drag Sort List into main and change my_list to grades.
  • Call print_grades() again in main with grades as the parameter. What do you see now in the console?
  • The list prints twice but it looks like one long list. Let's add a space between them!
  • From , drag Blank Line into the bottom of print_grades() outside the loop.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)